[py] Fix docstring issues that sphinx complains about#15466
[py] Fix docstring issues that sphinx complains about#15466cgoldberg merged 7 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 2fe8e77
Previous suggestions✅ Suggestions up to commit 9b4b273
✅ Suggestions up to commit b5b4e01
|
||||||||||||||||||||||||||||||||
Co-authored-by: qodo-merge-pro[bot] <151058649+qodo-merge-pro[bot]@users.noreply.github.com>
* [py] Fix docstring errors that sphinx complained about * [py] Fix parameter type for web_socket_url * [py] Remove duplicate web_socket_url from BaseOptions
User description
Motivation and Context
This is a bunch of small fixes to docstrings that sphinx keeps complaining about when generating the Python docs. There are still a ton of warnings when building the docs, but this at least fixes some of them.
This also includes some minor changes suggested by the bot below in comments.
Types of changes
Checklist
PR Type
Documentation
Description
Fixed inconsistent docstring formatting across multiple files.
Standardized section headers in docstrings for better Sphinx compatibility.
Improved clarity and consistency in parameter and return descriptions.
Changes walkthrough 📝
15 files
Standardized docstring headers for methods.Fixed docstring formatting for class attributes.Standardized docstring headers and usage examples.Improved docstring formatting for print options.Fixed docstring formatting for proxy settings.Standardized docstring headers for timeout descriptors.Standardized docstring headers for IE options.Fixed docstring formatting for shadow root methods.Standardized docstring headers for WebDriver methods.Improved docstring formatting for WebElement methods.Standardized docstring headers for Safari options.Fixed docstring formatting for expected conditions.Standardized docstring headers for relative locator methods.Improved docstring formatting for wait methods.Fixed minor formatting issue in documentation index.